package service

import (
	"micro-grpc-server/services/user/internal/conf"
	"micro-grpc-server/services/user/internal/dao"
	wechatService "micro-grpc-server/services/wechat/proto"
)

type UserService struct {
	conf      *conf.Config
	dao       *dao.UserDao
	wechatCli wechatService.WechatService
}

func NewUserService(config *conf.Config, wechatCli wechatService.WechatService) (s *UserService) {
	s = &UserService{
		conf:      config,
		dao:       dao.NewDao(config),
		wechatCli: wechatCli,
	}
	return
}
